package com.yao.ro.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
* 交易所表
*
* @author autoCode
* @version 1.0.0-SNAPSHOT
* @date 2020-04-09
*/
@Data
@Accessors(chain = true)
public class ExchangeEntity implements Serializable {

private static final long serialVersionUID = 1L;

    /**
    * 自增主键
    */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Integer id;
    /**
    * 物品id
    */
    @TableField(value = "`goodsId`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer goodsId;
    /**
    * 当前价格
    */
    @TableField(value = "`price`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private BigDecimal price;
    /**
    * 历史最高价格
    */
    @TableField(value = "`historyMaxPrice`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private BigDecimal historyMaxPrice;
    /**
    * 历史最低价格
    */
    @TableField(value = "`historyMinPrice`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private BigDecimal historyMinPrice;
    /**
    * 历史价格
    */
    @TableField(value = "`historyPrice`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String historyPrice;
    /**
     * 是否适合购买 1-是
     */
    @TableField(value = "`buyable`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer buyable;
    /**
    * 是否适合出售 1-是
    */
    @TableField(value = "`salable`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer salable;
    /**
    * 创建时间
    */
    @TableField(value = "`createTime`", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
    * 更新时间
    */
    @TableField(value = "`updateTime`", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}